<?php

namespace app\validate\api;

use think\Validate;

/**
 * 迷你世界验证器
 * Class Index
 * @package app\index\validate
 */
class Mini extends Validate
{
    protected $rule = [
        'record_id' =>'require|number',
        'page'      =>'number'
    ];
    protected $message = [
        'page.number'       =>'page必须为数字',
        'record_id.require' =>'record_id不可为空',
        'record_id.number'  =>'record_id必须为数字',
    ];
    protected $scene = [
        'detail' =>["record_id"],
        'list'   =>['page']
    ];
}